package com.mk;

import com.mj.app.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:user.xml"})//单元测试,也可以不读取applicationContext.xml,根据自定义的xnl文件找去类
public class UseT {
    @Autowired
    private User user;
    @Test
    public void uu(){
        System.out.println(user);
    }
}
